package com.snail.poker.service;

import com.snail.poker.model.Equipment;
import com.snail.poker.web.bean.PageBean;

/**
 * 移动设备的业务逻辑接口
 * 
 * @author Snail
 * 
 */
public interface EquipmentService {
	/**
	 * 移动设备登录平台的日志记录
	 * 
	 * @param equipment
	 * @return
	 * @throws Exception
	 */
	public abstract Equipment saveEquipment(Equipment equipment)
			throws Exception;

	/**
	 * 更改设备在线状态
	 * 
	 * @param equipment
	 * @param status
	 * @return 如果传入的数据为离线状态，则返回true删除Session
	 * @throws Exception
	 */
	public abstract boolean changeStatus(Equipment equipment, int status)
			throws Exception;

	/**
	 * 查询移动设备登录的历史记录
	 * 
	 * @return
	 */
	public abstract PageBean queryEquipment();
}
